how set field after another field in migration in laravel

87

how set field after another field in migration in laravel -

Schema::table('users', function($table)
{
    $table->string('phone_nr')->after('id');
});

how add field to table by another migration in laravel -

php artisan make:migration add_store_id_to_users_table --table=users

Comments

Submit
0 Comments